#include <iostream>
#include <vector>
#include "Fruit.h"
using namespace std;
#include <algorithm>
#include <memory>

int main(int argc, char**argv)
{
	Basket* instance = Basket::getInstance();
	Fruit banana("banana", 3.5);
	Fruit pear("pear", 1.8);
	Fruit apple("apple", 10.5);
	
	instance->insertFruit(banana);
	instance->insertFruit(pear);
	instance->insertFruit(apple);

	instance->print();
	instance->fruitSort();
	instance->print();

	auto_ptr<Basket> p(instance);
			
	return 0;
}
